#do not understand the task
def deposit(n):
   s = 0
   a = 1
   for i in range(n):
       s = s + a
       a = a * 2
   return s

def withdraw(n,amount):
   s = 0
   for i in range(n):
       s = s + amount
   return s   

days,amount=eval(input())
diff=deposit(days)-withdraw(days,amount)
if diff>0:
    print("富翁亏损: {:.2f}".format(diff))
else:
    print("富翁赢利: {:.2f}".format(0-diff))